package com.onlineMIS.unit_testing;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;

import com.onlineMIS.ORM.entity.headQ.barcodeGentor.Brand;
import com.onlineMIS.ORM.entity.headQ.custMgmt.HeadQCust;
import com.onlineMIS.ORM.entity.headQ.finance.FinanceBill;
import com.onlineMIS.unit_testing.entity.HeadqEntityTag;

public class test {
	
	public static void main(String[] args) {

	Configuration configuration = new Configuration().configure();
		
		SessionFactory sFactory = configuration.buildSessionFactory();
		
		Session session = sFactory.openSession();
		
//		Criteria criteria = session.createCriteria(HeadQCustTwo.class);
//		Transaction transaction = session.beginTransaction();
//		List<HeadQCustTwo> cList = criteria.list();
//				
//		for (HeadQCustTwo hQCust : cList) {
//			HeadqEntityTag eTag = new HeadqEntityTag();
//			eTag.setEntityId(hQCust.getId());
//			eTag.setTagId(3);
//			session.save(eTag);
//		}
      
//		transaction.commit();
		session.close();

	}
	

}
